package org.jeecg.modules.xl.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.xl.store.entity.XlCustomerMystore;
import org.jeecg.modules.xl.store.entity.XlCustomerStoreInfo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 客户门店信息
 * @Author: jeecg-boot
 * @Date:   2024-10-24
 * @Version: V1.0
 */
public interface IXlCustomerStoreInfoService extends IService<XlCustomerStoreInfo> {

	/**
	 * 添加一对多
	 *
	 * @param xlCustomerStoreInfo
	 * @param xlCustomerMystoreList
	 */
	public void saveMain(XlCustomerStoreInfo xlCustomerStoreInfo,List<XlCustomerMystore> xlCustomerMystoreList) ;
	
	/**
	 * 修改一对多
	 *
   * @param xlCustomerStoreInfo
   * @param xlCustomerMystoreList
	 */
	public void updateMain(XlCustomerStoreInfo xlCustomerStoreInfo,List<XlCustomerMystore> xlCustomerMystoreList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


//	List<XlCustomerStoreInfo>  selectStoreInCustomerIds(String customerids);
	List<XlCustomerStoreInfo> selectStoresInDepartName(String departnames);

	public List<XlCustomerStoreInfo> selectStoresByLoginUserId(LoginUser loginUser) ;

	public XlCustomerStoreInfo getStoreInfoCacheable(String storeCode) ;
	
}
